package task.manager;

import java.util.HashMap;

/**
 * Hash storage for login.
 * 
 * @author Harrison Saylor, Aaron Mead, Marc Huet, Greg Ruskin
 * @version 2
 */
public class LoginDataMap extends HashMap<String, String> {
	
	/**
	 * serial version UID
	 */
	private static final long serialVersionUID = 3L;

	public LoginDataMap(){
		super();
		this.put("default", "default");
	}

	public boolean isValid(String username, String password) {
		if(this.containsKey(username)&&this.get(username).equals(password)){
			return true;
		}
		return false;
	}

}
